package 期末复习;

import Dongxufeng.While;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Date;
import java.util.Scanner;

public class Tody {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (true){
            System.out.println("等待录入");
            String res= sc.next();
            if (res.equals("n")) {
                break;
            }else {
                DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("YYYY年MM日 HH：mm:ss");
                System.out.println(dateTimeFormatter.format(LocalDateTime.now()));
            }
        }
    }
}
